package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author hua
 * @since 2024-10-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_logistics_account")
public class LogisticsAccountDo extends Model<LogisticsAccountDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("tenant_id")
    private Long tenantId;
    /**
     * 账户名称
     */
    @TableField("name")
    private String name;

    /**
     * 物流商
     */
    @TableField("service_name")
    private String serviceName;

    /**
     * 授权状态 0未知
     */
    @TableField("status")
    private Integer status;

    /**
     * 启用状态
     */
    @TableField("enable")
    private Integer enable;

    /**
     * 备注
     */
    @TableField("tips")
    private String tips;

    /**
     * 子服务数量
     */
    @TableField("channel_quantity")
    private Integer channelQuantity;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    /**
     * 承运商服务代码
     */
    @TableField("carrier_code")
    private String carrierCode;

    /**
     * 物流商类型 目前 4 是自定义类型  3可以新建物流渠道 2不可以添加物流渠道
     */
    @TableField("carrier_type")
    private Integer carrierType;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_by")
    private Long createBy;

    @TableField("update_time")
    private Date updateTime;

    @TableField("update_by")
    private Long updateBy;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
